package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.CharacterSetName;
import com.yanmaohu.yulia.bean.CharacterSetSource;
import com.yanmaohu.yulia.bean.CollateClause;
import com.yanmaohu.yulia.bean.SchemaElement;

/**
 * @author Bright Lee
 */
public final class CharacterSetDefinition implements SchemaElement, SqlSchemaDefinitionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private CharacterSetName characterSetName;
    private CharacterSetSource characterSetSource;
    private CollateClause collateClause;

    public CharacterSetDefinition(int beginIndex,
                                  int endIndex,
                                  CharacterSetName characterSetName,
                                  CharacterSetSource characterSetSource,
                                  CollateClause collateClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.characterSetName = characterSetName;
        this.characterSetSource = characterSetSource;
        this.collateClause = collateClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public CharacterSetName getCharacterSetName() {
        return characterSetName;
    }

    public CharacterSetSource getCharacterSetSource() {
        return characterSetSource;
    }

    public CollateClause getCollateClause() {
        return collateClause;
    }

}
